﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Media;
using Kopytko.BoardGame;
using Kopytko.GameBase;

namespace Chess.Pawns
{
    public enum ChessPawnType
    {
        Bishop,
        King,
        Knight,
        Pawn,
        Queen,
        Rook,
    }

    public enum ChessPawnColor
    {
        Black,
        White,
    }

    public class ChessPawn : Pawn
    {
        public Brush Bg
        {
            get { return (Brush)GetValue(BgProperty); }
            set { SetValue(BgProperty, value); }
        }

        // Using a DependencyProperty as the backing store for BoardBoxBg.  This enables animation, styling, binding, etc...
        public static readonly DependencyProperty BgProperty =
            DependencyProperty.Register("BoardBoxBg", typeof(Brush), typeof(ChessPawn), new UIPropertyMetadata(Brushes.Transparent));



        public ChessPawn(IPlayer player, BoardPosition position, ChessPawnType type, ChessPawnColor color) : base(player, position)
        {
            switch (type)
            {
                case ChessPawnType.Bishop:

                    break;
                case ChessPawnType.King:
                    break;
                case ChessPawnType.Knight:
                    break;
                case ChessPawnType.Pawn:
                    break;
                case ChessPawnType.Queen:
                    break;
                case ChessPawnType.Rook:
                    break;
                default:
                    throw new ArgumentOutOfRangeException("type");
            }
        }
    }
}
